package com.gragra.nounIdentification.tests;

import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import com.gragra.nounIdentification.ExponentialIncreasingMax;

public class TestExponentialIncreasingMax
{
	/**
	 * 
	 */
	private ExponentialIncreasingMax eim;
	@Before
	public void setUp() throws Exception
	{
		eim = new ExponentialIncreasingMax(2, 3);
	}
	@Test
	public void testGetMaxNouns()
	{
		assertEquals(1.0,eim.getMaxNouns(0, null),0.00001);
		assertEquals(3.0,eim.getMaxNouns(1, null),0.00001);
		assertEquals(27.0,eim.getMaxNouns(3, null),0.00001);
	}
	@Test
	public void testGetMaxFrames()
	{
		assertEquals(1.0, eim.getMaxFrames(0, null), 0.0001);
		assertEquals(2.0, eim.getMaxFrames(1, null), 0.0001);
		assertEquals(16.0, eim.getMaxFrames(4, null), 0.0001);
	}
}